<?php

/**
 * EnqueteOpcao form.
 *
 * @package    form
 * @subpackage EnqueteOpcao
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class EnqueteOpcaoForm extends BaseEnqueteOpcaoForm
{
  	public function configure()
  	{
  		parent::configure();
		unset($this['id_enquete_opcao'], $this['id_enquete']);
		
		$this->widgetSchema['ds_opcao'] = new sfWidgetFormInput(
			array(),
			array('size'=>50)
		);
  		
  		$this->widgetSchema->setLabels(array(
  			'id_enquete_opcao' => 'ID#',
		    'id_enquete'       => 'Enquete',
		    'ds_opcao'         => 'Opção',
		    'nu_voto'          => 'N Votos',
		    'created_at'       => 'Criado em',
		    'updated_at'       => 'Atualizado em',
		));
		
		$this->validatorSchema->setOption('allow_extra_fields', true);
  	}
}